<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class career_controller extends public_controller
{
    public function index()
    {
        $this->load_view('article');
    }

    // Override
    public function load_content_view()
    {
        $article_item = $this->article->get_element_by_uri($this->uri->uri_string());
        if(isset($article_item->id))
        {
            $this->article_view->title = $article_item->title;
            $this->article_view->content = $article_item->content;
        }
        $this->article_view->left_header_title = 'CAREER';
        $this->article_view->add_breadcrumb_item('Home',base_url());
        $this->article_view->add_breadcrumb_item('Career',base_url().'career');

        $this->article_view->load_view();
    }

    // Override
    public function get_menu_code()
    {
        return 'CAREER';
    }
}